<template>
  <div>
    <el-card style="border-radius: 20px;margin-top: 55px;min-width: calc(100vw - 210px)">
      <el-table
          :data="ResumeList"
          style="border-radius: 15px"
          height="530"
      >
        <el-table-column prop="resumename" label="姓名"/>
        <el-table-column prop="gender" label="性别" sortable/>
        <el-table-column prop="age" label="年龄" sortable/>
        <el-table-column prop="salarye" label="期望薪资" sortable/>
        <el-table-column prop="salaryn" label="目前薪资" sortable/>
        <el-table-column prop="inde" label="期望行业" sortable/>
        <el-table-column prop="rstate" label="人才状态"
                         :filters="[
                               {text:'待初筛',value:'待初筛'},
                               {text:'已初筛',value:'已初筛'},
                               {text:'已推荐',value:'已推荐'},
                               {text:'已初试',value:'已初试'},
                               {text:'已复试',value:'已复试'},
                               {text:'已终试',value:'已终试'},
                               {text:'已offer',value:'已offer'},
                               {text:'已入职',value:'已入职'},
                               {text:'已过保',value:'已过保'},
                               {text:'已淘汰',value:'已淘汰'},
                           ]"
                         :filter-method="select"
        >
        </el-table-column>
        <el-table-column fixed="right" label="操作" width="120">
          <el-button link type="primary">沟通</el-button>
        </el-table-column>
      </el-table>
    </el-card>
    <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="currentPage"
        :page-sizes="[5,10,15,20]"
        :page-size="pageSize"
        layout="total,sizes,prev,pager,next,jumper"
        :total="total">
    </el-pagination>
  </div>
</template>

<script>
import request from "@/utils/request";

export default {
  name: "ProgressResume",
  components: {},
  data() {
    return{
      ResumeList:[],
      currentPage:1,
      pageSize:10,
      total:0,
    }
  },
  created() {
    this.load()
  },
  methods: {
    load() {
      request.get("/resume/progress",{
        params:{
          pageNumber:this.currentPage,
          pageSize:this.pageSize,
        }}).then(res=>{
        console.log(res)
        this.ResumeList=res.data.records
        this.total=res.data.total
      })

    },
    handleSizeChange(val){
      this.pageSize=val
      this.load()
    },
    handleCurrentChange(val){
      this.currentPage=val
      this.load()
    },
  },
}
</script>

<style scoped>

</style>